using Library.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Linq;

namespace Core.Domain
{
    [DataContract]
    public class MotorPolicy : Policy
    {
        public MotorPolicy()
        {
        }

        [DataMember]
        [Required]
        public string PlateNo { get; set; }

        [Display(Name = "Type of Fuel")]
        [Required]        
        [Range(1, int.MaxValue, ErrorMessage = "The Field {0} is mandatory")]
        [DataMember]
        public int TypeOfFuelID { get; set; }

        // Navigation properties        
    }
}

